Chrome DevTools [chrome://inspect] : 404 Not Found The resource could not be found

I used "chrome://inspect" for a few days. Everything was fine. Today, for some reason, when I click "inspect" the result is "404 Not Found The resource could not be found." What could be the...

Solving the seventh with O(n)

I have solved the seventh problem of Euler, it says: By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the 10 001st prime number? I...

How to create symmetric encryption key with Google Tink?

I have a key (say) "thisist0psecret" that I want to use as a symmetric encryption/decryption key with the Google Tink library. I am baffled that I am unable to do this simple thing. I can...

How to easily encrypt and decrypt a String using Tink?

Until now, I was using jasypt to encrypt a string before storing it on disk on app closing, and later when opening the app for decrypt the string after retrieving it from disk. It was super easy...

How to wrap char literal in IO monad in Haskell?

I know you're supposed to wrap up the operations you want to perform on a result in a monad rather than unwrap things from the monad. What I can't find are any idiot-friendly examples of how to do...

Key construction in Tink for KeysetHandle

The following lines show how to generate a key in Tink: keysetHandle=KeysetHandle.generateNew(AeadKeyTemplates.AES128_GCM) privateKeysetHandle =...

Decryption erorr when using tink in Java

I am trying to create an encrypted token that is to be sent as an REST API response. The end user then can send the same token during next request to this api, and I can parse it and get some...

GeneralSecurityException: Invalid signature. (RewardedAdsVerifier - SSV)

I clearly followed this insctructions: https://developers.google.com/admob/ios/rewarded-video-ssv#ssv_callback_parameters My server - spring v2.1.10 (maven), To implement server verification, I...

Resolving build issue with xtext and maven

I'm trying to compile xtext and xtend files within my maven build using the xtend-maven-plugin and the xtext-maven-plugin. When trying to trying to run the build though, Maven seems to run into an...

Openseadragon, DeepZoom, WordPress

Trying to setup OpenSeadragon for a WordPress site. Just testing around now and trying to get the zoom feature to work. I've included the OpenSeadragon scripts in order to view the DZI images. ...

Apache Beam AvroIO read large file OOM

Problem: I am writing an Apache Beam pipeline to convert Avro file to Parquet file (with Spark runner). Everything works well until I start to convert large size Avro file (15G). The code used to...

android security crypto: java.lang.NoSuchMethodError: No static method aes256SivTemplate()

When using androidx.security:security-crypto:1.0.0-rc01 The app runs fine, when using the new androidx.security:security-crypto:1.0.0-rc02 I get the following E/AndroidRuntime: FATAL...

How to snapshot and save a rendered Metal drawable in macOS Cocoa Objective-C?

I've got an app that uses Metal to do some rendering to screen (with a CAMetalLayer, not a MTKView, by necessity), and I'd like to provide the user with the option of saving a snapshot of the...

Android Studio : Gradle sync failed: Could not download tink

When start a project on Android Studio 4.0, Gradle cannot sync completely and Design mode is unavailable. Error message appear - > Gradle sync failed: Could not download tink-1.3.0-rc2.jar...

Mutual TLS in Python using Google Cloud KMS

Is there a way to make HTTP requests over mTLS with private keys stored in Google Cloud Key Management Service? In this blog post what we need is done in Go. Is it possible to achieve the same in...

How to resolve Duplicate Class error in Android

I am getting Duplicate class com.google.protobuf.AbstractMessageLite found in modules jetified-protobuf-javalite-3.11.0.jar (com.google.protobuf:protobuf-javalite:3.11.0) and...

How to validate google payment token in nodejs

I'm trying to validate on backend the payment token that I got from the mobile app which is using google-payments. The token looks like...

How to generate a Java tink key?

I'm using the Google Tink library in my Java project to encrypt two texts, one with Symmetric Key Encryption (SKE), and another one with Deterministic symmetric key encryption (DSKE). This is a...

Android studio 4.0 Could not resolve all artifacts for configuration ':classpath'.Received status code 403 from server: OK

I have installed Android studio in Mac when i try to create new project it is not building for Kotlin and Java both languages. Bellow exception is for Java project. Exception...

How to rotate keys?

I'm looking at the Tink documentation, but I don't see a clear way how to rotate a key. Basically, I would like to do somethink like: KeyTemplate keyTemplate =...

Export keyset entry from Tink with AndroidKeysetManager

I'm using *'androidx.security:security-crypto:1.1.0-alpha02*' in an android project. It works fine for file encryption/decription. I've set up a master key inside the hardware keystore that...

running flutter project for first time

Launching lib\main.dart on Android SDK built for x86 in debug mode... Running Gradle task 'assembleDebug'... FAILURE: Build failed with an exception. What went wrong: A problem occurred...

How to pass in valid values into cleartext_keyset_json to create a Tink key

In Tink, it is possible to load and write cleartext keysets as jsons. An non-working example is seen below: { "primaryKeyId": 2800579, "key": [ { "keyData": { "typeUrl":...

Mockk spky throwing NoClassDefFoundError

I am trying to write a unit test for my view model with help of Mockk. @Test fun `When loading the ResponseViewState isLoading`() { val observer = spyk<Observer<ResponseViewState>>(Observer {...

Tink GeneralSecurityException: cannot find key template: AES128_GCM Tink

What I tried to run : KeysetHandle keyHandler = KeysetHandle.generateNew(KeyTemplates.get("AES128_GCM")); Error I got : java.security.GeneralSecurityException: cannot find key template:...

Intermittently corrupted data with Google Tink encryption

Im investigating the use of com.google.crypto.tink:tink-android:1.6.1 in my current Android project. The data I am encrypting includes the OAuth2 Access Token/Refresh Token I employ for my remote...

JDK 16 Curve not supported: secp256r1 [NIST P-256,X9.62 prime256v1] (1.2.840.10045.3.1.7)

Currently working on upgrading from Java 13 to Java 16 and using the following updated dependencies for a cryptography library performing encryption/decryption: BouncyCastle 1.69 Google Tink...

Could not resolve com.google.guava:guava:30.1-jre - Gradle project sync failed. Basic functionality will not work properly - in kotlin project

It was a project that used to work well in the past, but after updating, the following errors appear. plugins { id 'com.android.application' id 'kotlin-android' } android { ...

Missing class com.google.errorprone.annotations.Immutable on building release apk with R8

I am getting below error on building the release apk with R8 enabled: Task :app:minifyReleaseWithR8 AGPBI: {"kind":"warning","text":"Missing classes detected while running R8. Please add the...

GCP Cloud KMS - custom key, disaster recovery possible?

we are currently getting our heads around gcp cloud kms and how to cater for disaster recovery. this is our current test setup: Java using Spring boot + Google Tink using KMSEnvelopeAead +...