| OVERVIEW | PACKAGE | CONSTR | FIELDS | METHODS | FRAMES NO FRAMES | INHERITED |
trait SecurityHelpers
extends
ScalaObject
| makeBlowfishKey |
def makeBlowfishKey
create a Blowfish key as an array of bytes
|
Array[Byte] |
| != |
final def !=(arg0 : Object)
|
Boolean | AnyRef |
| != |
final def !=(arg0 : Any)
|
Boolean | Any |
| == |
final def ==(arg0 : Any)
|
Boolean | Any |
| == |
final def ==(arg0 : Object)
|
Boolean | AnyRef |
| asInstanceOf |
final def asInstanceOf[T0]
|
T0 | Any |
| base64Decode |
def base64Decode(in : String)
decode a String in Base 64
|
Array[Byte] | |
| base64Encode |
def base64Encode(in : Array[Byte])
encode a Byte array in Base 64
|
String | |
| blowfishDecrypt |
def blowfishDecrypt(enc : String, key : SecretKey)
decrypt a Byte array with a Blowfish key (as a SecretKey object)
|
String | |
| blowfishDecrypt |
def blowfishDecrypt(enc : Array[Byte], key : SecretKey)
decrypt a Byte array with a Blowfish key (as a SecretKey object)
|
Array[Byte] | |
| blowfishDecrypt |
def blowfishDecrypt(enc : String, key : Array[Byte])
decrypt a Byte array with a Blowfish key (as a SecretKey object)
|
String | |
| blowfishDecrypt |
def blowfishDecrypt(enc : Array[Byte], key : Array[Byte])
decrypt a Byte array with a Blowfish key (as a Byte array)
|
Array[Byte] | |
| blowfishEncrypt |
def blowfishEncrypt(plain : String, key : SecretKey)
encrypt a String with a Blowfish key (as a SecretKey object)
|
String | |
| blowfishEncrypt |
def blowfishEncrypt(plain : Array[Byte], key : SecretKey)
encrypt a Byte array with a Blowfish key (as a SecretKey object)
|
Array[Byte] | |
| blowfishEncrypt |
def blowfishEncrypt(plain : String, key : Array[Byte])
encrypt a String with a Blowfish key (as a Byte array)
|
String | |
| blowfishEncrypt |
def blowfishEncrypt(plain : Array[Byte], key : Array[Byte])
encrypt a Byte array with a Blowfish key (as a Byte array)
|
Array[Byte] | |
| blowfishKeyFromBytes |
def blowfishKeyFromBytes(key : Array[Byte])
create a Blowfish key from an array of bytes
|
SecretKey | |
| clone |
protected def clone
|
Object | AnyRef |
| decryptStream |
def decryptStream(in : InputStream, key : SecretKey)
decrypt an InputStream with a Blowfish key (as a SecretKey object)
|
InputStream | |
| decryptStream |
def decryptStream(in : InputStream, key : Array[Byte])
decrypt an InputStream with a Blowfish key (as a Byte array)
|
InputStream | |
| decryptXML |
def decryptXML(in : String, key : SecretKey)
|
Box[Node] | |
| decryptXML |
def decryptXML(in : String, key : Array[Byte])
|
Box[Node] | |
| encryptStream |
def encryptStream(in : InputStream, key : SecretKey)
encrypt an InputStream with a Blowfish key (as a SecretKey object)
|
InputStream | |
| encryptStream |
def encryptStream(in : InputStream, key : Array[Byte])
encrypt an InputStream with a Blowfish key (as a Byte array)
|
InputStream | |
| encryptXML |
def encryptXML(in : Node, key : SecretKey)
|
String | |
| encryptXML |
def encryptXML(in : Node, key : Array[Byte])
|
String | |
| eq |
final def eq(arg0 : Object)
|
Boolean | AnyRef |
| equals |
def equals(arg0 : Any)
|
Boolean | AnyRef |
| finalize |
protected def finalize
|
Unit | AnyRef |
| getClass |
final def getClass
|
Class[Any] | AnyRef |
| hash |
def hash(in : String)
create a SHA hash from a String
|
String | |
| hash |
def hash(in : Array[Byte])
create a SHA hash from a Byte array
|
Array[Byte] | |
| hash256 |
def hash256(in : String)
create a SHA-256 hash from a String
|
String | |
| hash256 |
def hash256(in : Array[Byte])
create a SHA-256 hash from a Byte array
|
Array[Byte] | |
| hashCode |
def hashCode
|
Int | AnyRef |
| hexDigest |
def hexDigest(in : Array[Byte])
create an hex encoded SHA hash from a Byte array
|
String | |
| hexDigest256 |
def hexDigest256(in : Array[Byte])
create an hex encoded SHA-256 hash from a Byte array
|
String | |
| hexEncode |
def hexEncode(in : Array[Byte])
encode a Byte array as hexadecimal characters
|
String | |
| isInstanceOf |
final def isInstanceOf[T0]
|
Boolean | Any |
| md5 |
def md5(in : String)
create a MD5 digest from a String
|
String | |
| md5 |
def md5(in : Array[Byte])
create a MD5 digest from a Byte array
|
Array[Byte] | |
| ne |
final def ne(arg0 : Object)
|
Boolean | AnyRef |
| notify |
final def notify
|
Unit | AnyRef |
| notifyAll |
final def notifyAll
|
Unit | AnyRef |
| randomInt |
def randomInt(mod : Int)
return a random int modulo a number
|
Int | |
| randomLong |
def randomLong(mod : Long)
return a random Long modulo a number
|
Long | |
| shouldShow |
def shouldShow(percent : Double)
return true only 'percent' times when asked repeatedly
[details]
This function is used in the Skittr example to get a random set of users
|
Boolean | |
| synchronized |
final def synchronized[T0](arg0 : T0)
|
T0 | AnyRef |
| toString |
def toString
|
String | AnyRef |
| wait |
final def wait(arg0 : Long, arg1 : Int)
|
Unit | AnyRef |
| wait |
final def wait(arg0 : Long)
|
Unit | AnyRef |
| wait |
final def wait
|
Unit | AnyRef |
| OVERVIEW | PACKAGE | CONSTR | FIELDS | METHODS | FRAMES NO FRAMES | INHERITED |