
Security News
OpenGrep Restores Fingerprinting in JSON and SARIF Outputs
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
@datkt/crypto
Advanced tools
Supply Chain Security
Vulnerability
Quality
Maintenance
License
Various cryptographic function for datk.
The datkt.crypto
package an be installed with NPM.
$ npm install @datkt/crypto
konanc
command line program.## Compile a program in 'main.kt' and link crypto.klib found in `node_modules/`
$ konanc -r node_modules/@datkt -l crypto/crypto main.kt
where main.kt
might be
import datkt.crypto.*
fun main(args: Array<String>) {
val kp = keyPair()
// @TODO
}
data class KeyPair(val publicKey: ByteArray, val secretKey: ByteArray)
A simple data class container for a public and secret key pair
keyPair(seed: ByteArray? = null): KeyPair
Generates a ed25519 key pair suitable for creating signatures.
val kp = keyPair("some random seed value".toUtf8())
or
val kp = keyPair()
sign(message: ByteArray, secretKey: ByteArray): ByteArray
Generates a signature for a given message and secret key.
val ( publicKey, secretKey ) = keyPair()
val message = "hello".toUtf8() // convert to ByteArray
val signature = sign(message, secretKey)
To run the tests, make sure the crypto.klib
Kotlin library is built by
running the following command.
$ npm run build
When the library is built, run the following command to run the tests.
$ npm test
MIT
FAQs
Various cryptographic function for datkt
The npm package @datkt/crypto receives a total of 25 weekly downloads. As such, @datkt/crypto popularity was classified as not popular.
We found that @datkt/crypto demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.