What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-26 06:50:08
data at transit encrypting nodejs stack overflow
var crypto = require('crypto'); var assert = require('assert'); var algorithm = 'aes256'; // or any other algorithm supported by OpenSSL var key = 'password'; var text = 'I love kittens'; var cipher = crypto.createCipher(algorithm, key); var encrypted... Add solution -
Javascript 2021-10-24 09:00:15
Encryption RSA, JavaScript
//src https://www.sohamkamani.com/nodejs/rsa-encryption/ //e.g. https://gist.github.com/sohamkamani/b14a9053551dbe59c39f83e25c829ea7 //////////////////////////////////////////////////////////////// npm install crypto //////////////////////////////////////... Add solution -
Other 2021-10-22 21:39:15
markecert.exe
1.- We create a new root trusted cert: $rootCert = New-SelfSignedCertificate -Subject 'CN=TestRootCA,O=TestRootCA,OU=TestRootCA' -KeyExportPolicy Exportable -KeyUsage CertSign,CRLSign,DigitalSignature -KeyLength 2048 -KeyUsageProperty All -KeyAlgorithm 'R... Add solution -
Javascript 2021-10-22 07:14:07
how to use aes for encryption and decryption in json object in java with demo
import java.io.UnsupportedEncodingException; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.util.Arrays; import java.util.Base64; import javax.crypto.Cipher; import javax.crypto.spec.SecretKeySpec; &n... Add solution -
Other 2021-10-22 00:14:06
linking to aws bucket endpoint from salesforce
String key = XXXXXXXXXXXXXXXXXXXX String secret = XXXXXXXXXXXXXXXXXXXXXXXXXXXXX String stringToSign = 'PUT\n\n' + attach.ContentType + '\n' + '/' + bucketname + '/' + filename; Blob mac = Crypto.generateMac('HMACSHA1', blob.valueOf(stringToS... Add solution
Best helpers
Ranking is empty