org.mindrot.jbcrypt.BCrypt.char64()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(124)

本文整理了Java中org.mindrot.jbcrypt.BCrypt.char64()方法的一些代码示例,展示了BCrypt.char64()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。BCrypt.char64()方法的具体详情如下:
包路径:org.mindrot.jbcrypt.BCrypt
类名称:BCrypt
方法名:char64

BCrypt.char64介绍

[英]Look up the 3 bits base64-encoded by the specified character, range-checking againt conversion table
[中]查找由指定字符编码的3位base64,根据转换表进行范围检查

代码示例

代码示例来源:origin: hierynomus/sshj

c1 = char64(s.charAt(off++));
c2 = char64(s.charAt(off++));
if (c1 == -1 || c2 == -1)
  break;
if (++olen >= maxolen || off >= slen)
  break;
c3 = char64(s.charAt(off++));
if (c3 == -1)
  break;
if (++olen >= maxolen || off >= slen)
  break;
c4 = char64(s.charAt(off++));
o = (byte)((c3 & 0x03) << 6);
o |= c4;

代码示例来源:origin: org.mindrot/jbcrypt

c1 = char64(s.charAt(off++));
c2 = char64(s.charAt(off++));
if (c1 == -1 || c2 == -1)
  break;
if (++olen >= maxolen || off >= slen)
  break;
c3 = char64(s.charAt(off++));
if (c3 == -1)
  break;
if (++olen >= maxolen || off >= slen)
  break;
c4 = char64(s.charAt(off++));
o = (byte)((c3 & 0x03) << 6);
o |= c4;

代码示例来源:origin: actframework/actframework

c1 = char64(s.charAt(off++));
c2 = char64(s.charAt(off++));
if (c1 == -1 || c2 == -1)
  break;
if (++olen >= maxolen || off >= slen)
  break;
c3 = char64(s.charAt(off++));
if (c3 == -1)
  break;
if (++olen >= maxolen || off >= slen)
  break;
c4 = char64(s.charAt(off++));
o = (byte)((c3 & 0x03) << 6);
o |= c4;

代码示例来源:origin: de.svenkubiak/jBCrypt

c1 = char64(s.charAt(off++));
c2 = char64(s.charAt(off++));
if (c1 == -1 || c2 == -1)
  break;
if (++olen >= maxolen || off >= slen)
  break;
c3 = char64(s.charAt(off++));
if (c3 == -1)
  break;
if (++olen >= maxolen || off >= slen)
  break;
c4 = char64(s.charAt(off++));
o = (byte)((c3 & 0x03) << 6);
o |= c4;

代码示例来源:origin: org.connectbot.jbcrypt/jbcrypt

c1 = char64(s.charAt(off++));
c2 = char64(s.charAt(off++));
if (c1 == -1 || c2 == -1)
  break;
if (++olen >= maxolen || off >= slen)
  break;
c3 = char64(s.charAt(off++));
if (c3 == -1)
  break;
if (++olen >= maxolen || off >= slen)
  break;
c4 = char64(s.charAt(off++));
o = (byte)((c3 & 0x03) << 6);
o |= c4;

代码示例来源:origin: rogerta/secrets-for-android

c1 = char64(s.charAt(off++));
c2 = char64(s.charAt(off++));
if (c1 == -1 || c2 == -1)
 break;
if (++olen >= maxolen || off >= slen)
 break;
c3 = char64(s.charAt(off++));
if (c3 == -1)
 break;
if (++olen >= maxolen || off >= slen)
 break;
c4 = char64(s.charAt(off++));
o = (byte)((c3 & 0x03) << 6);
o |= c4;

代码示例来源:origin: com.hierynomus/sshj

c1 = char64(s.charAt(off++));
c2 = char64(s.charAt(off++));
if (c1 == -1 || c2 == -1)
  break;
if (++olen >= maxolen || off >= slen)
  break;
c3 = char64(s.charAt(off++));
if (c3 == -1)
  break;
if (++olen >= maxolen || off >= slen)
  break;
c4 = char64(s.charAt(off++));
o = (byte)((c3 & 0x03) << 6);
o |= c4;

代码示例来源:origin: org.actframework/act

c1 = char64(s.charAt(off++));
c2 = char64(s.charAt(off++));
if (c1 == -1 || c2 == -1)
  break;
if (++olen >= maxolen || off >= slen)
  break;
c3 = char64(s.charAt(off++));
if (c3 == -1)
  break;
if (++olen >= maxolen || off >= slen)
  break;
c4 = char64(s.charAt(off++));
o = (byte)((c3 & 0x03) << 6);
o |= c4;

相关文章