cryptops.passphraseEncrypt

node v8.17.0
version: 1.0.0
endpointsharetweet
let { codec, string } = require("@xcmats/js-toolbox"), { passphraseEncrypt } = require("@stellar-fox/cryptops"), passphrase = "AbracadabraCzaryM4ry", poem = [ "Over hill, over dale,", "Thorough bush, thorough brier,", "Over park, over pale,", "Thorough flood, thorough fire!", "I do wander everywhere,", "Swifter than the moon's sphere;", "And I serve the Fairy Queen,", "To dew her orbs upon the green;", "The cowslips tall her pensioners be;", "In their gold coats spots you see;", "Those be rubies, fairy favours;", "In those freckles live their savours;", "I must go seek some dewdrops here,", "And hang a pearl in every cowslip's ear." ].join(string.nl()); passphraseEncrypt(passphrase, codec.stringToBytes(poem)) .then(console.log);
Loading…

no comments

    sign in to comment