2024-10-13 16:50:46 +02:00
|
|
|
const crypto = require('crypto')
|
|
|
|
const cryptoShit = require('../lib/apCryptoShit.js')
|
|
|
|
|
|
|
|
var signature = cryptoShit.sign("hello world")
|
|
|
|
|
2024-10-13 18:38:08 +02:00
|
|
|
var verified = cryptoShit.verify("hello world", signature)
|
|
|
|
|
2024-10-13 16:50:46 +02:00
|
|
|
console.info("is signature ok?: %s", verified);
|