Guest User

Untitled

a guest
Apr 21st, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. extern crate crypto;
  2. use crypto::sha2::Sha256;
  3. use crypto::digest::Digest;
  4.  
  5. fn main() {
  6. let mut hasher = Sha256::new();
  7. println!("data is: {}", format!("{}{}", location.app_id, location.device_type));
  8. hasher.input_str("cc414476-2a9b-4c9a-a3d0-b145ee317bc81");
  9. println!("{}", hasher.output_str());
  10. }
Add Comment
Please, Sign In to add comment