Skip to content

Instantly share code, notes, and snippets.

@perry-mitchell
Created November 7, 2017 10:23
Show Gist options
  • Save perry-mitchell/5cc8a81c12cfe1b28060c65cd9da62d3 to your computer and use it in GitHub Desktop.
Save perry-mitchell/5cc8a81c12cfe1b28060c65cd9da62d3 to your computer and use it in GitHub Desktop.
Import key with SubtleCrypto
subtleCrypto.importKey(
"raw",
stringToArrayBuffer(password),
{ name: "PBKDF2" },
false, // not extractable
["deriveBits"]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment