Comments (6)
HmacSHA512 would be very useful as well
from korge.
Also, alternative cipher block modes are essential to my project, such as IGE with a specified IV. I'm sorry I can't make a PR as I have no experience whatsoever in crypto, but I might donate :D
from korge.
There's SHA512 impl in commonModule, but idk if it works properly:
Do you think it should be listed on website (https://docs.korge.org/krypto/#hash-md5sha1sha256), or is it still not safe to use? 🤔
from korge.
These tests are passing:
I guess that comment refers to the need of doing the override. But the implementation seems to work.
from korge.
@soywiz Could you update to support HmacSHA512?
fun hmacSHA512(key: ByteArray, data: ByteArray): Hash = hmac(key, data, SHA512())
In the code I see that you are using it in pbkdf2:
fun pbkdf2WithHmacSHA512(password: ByteArray, salt: ByteArray, iterationCount: Int, keySizeInBits: Int): Hash =
pbkdf2(password, salt, iterationCount, keySizeInBits, SHA512())
...
u = HMAC.hmac(password, u, hasher).bytes // hasher is SHA512()
from korge.
I'm going to close this issue. The reason is that this is issue not S.M.A.R.T and covers too many cases. Feel free to open one per use-case.
@iTanChi feel free to open an issue for HMAC SHA512.
from korge.
Related Issues (20)
- Allow to specify android properties after `targetAndroid`
- korlibs.graphics.gl.AGOpengl$ShaderException: Error Compiling Shader HOT 2
- Support npm transitive dependencies with esbuild
- [Request] Create a config option to set smoothing=true as default. HOT 2
- [Nit Bug] Mac touchpad zoom in finger gesture on a JVM app window creates error log noise. HOT 2
- Allow setting stroke width on line() HOT 3
- WASM: Can't catch index out of bounds and divide by 0 exceptions?
- [Question] Use KorGe with Compose HOT 3
- Some sound formats don't work on JVM or web JS HOT 2
- FR: Add a blinking cursor for uiTextInput when user clicks on it HOT 1
- [Idea] Simplify internal API
- ctrl+a adds a symbol to the text input HOT 1
- Views are not working anymore if something got dragged on the scene in Android WebView
- Music playback for small files at least don't work properly on JS
- graphics{} on uiVerticalStack is not checking bounds
- uiSlider bug on uiHorizontalFill
- V2.duration class method conflict with extension method
- Move all the modules but korge and plugins to another repo HOT 1
- korlibs.time parsing millis precision issue HOT 17
- KorTE doesn't support liquid syntax
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from korge.