简体   繁体   English

这些腌制方法有什么区别

[英]what is the difference between these salting methods

  // Salt
    byte[] salt = {
    (byte)0xc7, (byte)0x73, (byte)0x21, (byte)0x8c,
    (byte)0x7e, (byte)0xc8, (byte)0xee, (byte)0x99
    };

and

// salt
byte salt[] = {
    -87, -101, -56, 50, 86, 53, -29, 3
};

how can I convert the first piece of code tp look like the second. 我如何转换第一段代码tp看起来像第二段代码。 My java is very liitle 我的java非常小

There is no difference. 没有区别。

You are only initialize the instance salt, which type is array of bytes. 您仅初始化实例salt,其类型为字节数组。 Java does not have memory of "how I got these numbers in the array" (it does not need one). Java没有“我如何在数组中获得这些数字”的记忆(它不需要一个)。

After initialization, you have in both cases a variable salt with some numbers in its array. 初始化后,在两种情况下,您的数组中都有一个带有一些数字的可变盐。 No more, no less. 不多不少。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM