Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

5
LINES

< > BotCompany Repo | #1023355 // assertSHA256 - assures it's the correct format for an SHA256 hash

JavaX fragment (include)

sS assertSHA256(S s) {
  if (!isSHA256(s))
    fail("Not an SHA-256 signature: " + s);
  ret s;
}

Author comment

Began life as a copy of #1007519

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023355
Snippet name: assertSHA256 - assures it's the correct format for an SHA256 hash
Eternal ID of this version: #1023355/1
Text MD5: 4928cf76843e379516867453ed7169c4
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-06-07 10:17:57
Source code size: 101 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 268 / 310
Referenced in: [show references]