forked from sergeych/crypto2
		
	0.5.6 cosmetics and versions upgrade, JVM target to 11 for better android compatibility
This commit is contained in:
		
							parent
							
								
									14a63a05c2
								
							
						
					
					
						commit
						b975df9a13
					
				@ -19,7 +19,7 @@ repositories {
 | 
				
			|||||||
  maven("https://gitea.sergeych.net/api/packages/SergeychWorks/maven")
 | 
					  maven("https://gitea.sergeych.net/api/packages/SergeychWorks/maven")
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
dependencies {
 | 
					dependencies {
 | 
				
			||||||
  import("net.sergeych:crypto2:0.5.5")  
 | 
					  import("net.sergeych:crypto2:0.5.6")  
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -1,3 +1,5 @@
 | 
				
			|||||||
 | 
					import org.jetbrains.kotlin.gradle.dsl.JvmTarget
 | 
				
			||||||
 | 
					
 | 
				
			||||||
plugins {
 | 
					plugins {
 | 
				
			||||||
    kotlin("multiplatform") version "2.0.20"
 | 
					    kotlin("multiplatform") version "2.0.20"
 | 
				
			||||||
    id("org.jetbrains.kotlin.plugin.serialization") version "2.0.20"
 | 
					    id("org.jetbrains.kotlin.plugin.serialization") version "2.0.20"
 | 
				
			||||||
@ -6,7 +8,7 @@ plugins {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
group = "net.sergeych"
 | 
					group = "net.sergeych"
 | 
				
			||||||
version = "0.5.6-SNAPSHOT"
 | 
					version = "0.5.6"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
repositories {
 | 
					repositories {
 | 
				
			||||||
    mavenCentral()
 | 
					    mavenCentral()
 | 
				
			||||||
@ -16,7 +18,11 @@ repositories {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
kotlin {
 | 
					kotlin {
 | 
				
			||||||
    jvm()
 | 
					    jvm {
 | 
				
			||||||
 | 
					        compilerOptions {
 | 
				
			||||||
 | 
					            jvmTarget = JvmTarget.JVM_11
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
    js {
 | 
					    js {
 | 
				
			||||||
        browser()
 | 
					        browser()
 | 
				
			||||||
        nodejs()
 | 
					        nodejs()
 | 
				
			||||||
 | 
				
			|||||||
@ -91,9 +91,9 @@ object PBKD {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Binary id is a binary hash-capable key, we use it. byte array can't be a hash key in kotlin: its value
 | 
					     * Binary id is a binary hash-capable key, we use it. byte array can't be a hash key in kotlin: its value
 | 
				
			||||||
     * does not depend on the byte content.
 | 
					     * does not depend on the byte content. It is unsafe to use it outside the generator!
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    fun key(kdf: KDF, password: String): BinaryId =
 | 
					    private fun key(kdf: KDF, password: String): BinaryId =
 | 
				
			||||||
        BinaryId.createFromBytes(
 | 
					        BinaryId.createFromBytes(
 | 
				
			||||||
            0,
 | 
					            0,
 | 
				
			||||||
            BipackEncoder.encode(kdf) + blake2b3l(password.encodeToUByteArray()).asByteArray()
 | 
					            BipackEncoder.encode(kdf) + blake2b3l(password.encodeToUByteArray()).asByteArray()
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user