- Download and install Vagrant
brew tap hashicorp/tap
brew install hashicorp/tap/hashicorp-vagrant
- Download and install Vagrant VMware Utility
REACT_APP_DEV_API_KEY=XXX | |
REACT_APP_DEV_AUTH_DOMAIN=XXX | |
REACT_APP_DEV_DATABASE_URL=XXX | |
REACT_APP_DEV_PROJECT_ID=XXX | |
REACT_APP_DEV_STORAGE_BUCKET=XXX | |
REACT_APP_DEV_MESSAGING_SENDER_ID=XXX | |
REACT_APP_DEV_ID=XXX |
public class OuterClass | |
{ | |
private int x; | |
private OuterClass(int x){ | |
this.x =x; | |
} | |
public static void main( String[] args ) | |
{ | |
// Should print 1 constructor not 2 | |
System.out.println(OuterClass.class.getDeclaredConstructors().length); // prints 2 |
package geoCoordinatesMap; | |
final class GeoCoordinates { | |
private final double latitude; | |
private final double longitude; | |
public GeoCoordinates(double latitude, double longitude) { | |
this.latitude = latitude; | |
this.longitude = longitude; | |
} |
brew tap hashicorp/tap
brew install hashicorp/tap/hashicorp-vagrant
The Penguin AES ECB problem demonstrates the vulnerability of the Electronic Codebook (ECB) mode of AES encryption when applied to images that have large regions of similar colors. ECB mode encrypts each block of data independently, which means identical plaintext blocks are encrypted into identical ciphertext blocks. This characteristic can reveal patterns in the encrypted data, making it impractical for encrypting images or other data with repeating patterns.
This example is a demonstration of why ECB is vulnerable to simple attacks, and how ECB can reveal plaintext patterns in ciphertext. In this example, we use AES with ECB to encrypt a bitmap image that has large regions of uniform color. Although each pixel's color is meant to be encrypted, the overall image can still be recognized, as the arrangement of identically colored pixels in the original remains visible in the encrypted output.
FROM python:3.9-slim | |
WORKDIR /app | |
COPY . /app | |
RUN pip install --no-cache-dir -r requirements.txt \ | |
&& apt-get update \ | |
&& apt-get install -y ffmpeg \ | |
&& useradd -m appuser \ |