Skip to content

Instantly share code, notes, and snippets.

@fourbytes
Last active July 19, 2016 11:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fourbytes/fff90b566fd6ea68e7c40e41a10482b9 to your computer and use it in GitHub Desktop.
Save fourbytes/fff90b566fd6ea68e7c40e41a10482b9 to your computer and use it in GitHub Desktop.
fn parse_otp(otp: String) -> ([u8; 6], [u8; 32]) {
let otp_raw = otp.as_bytes();
return (otp_raw[0..5], otp_raw[6..37])
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment