Skip to content

Commit

Permalink
Change package of project
Browse files Browse the repository at this point in the history
  • Loading branch information
mkay1375 committed Jun 5, 2024
1 parent cb8d404 commit 67ee5ae
Show file tree
Hide file tree
Showing 22 changed files with 104 additions and 53 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@ Key Features:
Apache Maven:
```xml
<dependency>
<groupId>tech.tapsi.libs.hiss</groupId>
<groupId>io.github.tap30</groupId>
<artifactId>hiss</artifactId>
<version>0.11.1</version>
</dependency>
```

Gradle (Groovy):
```groovy
implementation 'tech.tapsi.libs.hiss:hiss:0.11.1'
implementation 'io.github.tap30:hiss:0.11.1'
```

Gradle (Kotlin):
```kotlin
implementation("tech.tapsi.libs.hiss:hiss:0.11.1")
implementation("io.github.tap30:hiss:0.11.1")
```

### 2. Create Hiss instance via `HissFactory`
Expand All @@ -47,8 +47,8 @@ var hiss = HissFactory.createHiss(() -> HissProperties.fromBase64EncodedKeys(
### 3. Annotate your class with `@Encrypted`

```java
import tech.tapsi.libs.hiss.Encrypted;
import tech.tapsi.libs.hiss.EncryptedInside;
import io.github.tap30.hiss.Encrypted;
import io.github.tap30.hiss.EncryptedInside;

public class User {
@Encrypted
Expand Down Expand Up @@ -145,14 +145,14 @@ With Hiss it is possible to encrypt only some parts of an string.
As an example having:

```java
import tech.tapsi.libs.hiss.Encrypted;
import io.github.tap30.hiss.Encrypted;

public class Message {

@Encrypted(pattern = "\\d+")
private String content = "Your code is 123456";
private String hashedContent;

// getters and setter
}
```
Expand Down
78 changes: 69 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,31 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>tech.tapsi.libs.hiss</groupId>
<groupId>io.github.tap30</groupId>
<artifactId>hiss</artifactId>
<version>0.11.1</version>
<name>Hiss</name>
<description>A simple field-level encryption library</description>
<developers>
<developer>
<id>mkay1375</id>
<name>Mostafa Kazemi</name>
<email>[email protected]</email>
</developer>
</developers>
<licenses>
<license>
<name>Apache-2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<url>https://github.com/Tap30/hiss</url>
<scm>
<connection>https://github.com/Tap30/hiss.git</connection>
<tag>HEAD</tag>
<url>https://github.com/Tap30/hiss</url>
</scm>
<properties>
<java.version>11</java.version>
<maven.compiler.source>11</maven.compiler.source>
Expand Down Expand Up @@ -44,21 +64,61 @@
</dependency>
</dependencies>

<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/Tap30/hiss</url>
</repository>
</distributionManagement>

<build>
<plugins>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.4.0</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>central</publishingServerId>
<tokenAuth>true</tokenAuth>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.5</version>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.1.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.4</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tech.tapsi.libs.hiss;
package io.github.tap30.hiss;

import org.intellij.lang.annotations.Identifier;
import org.intellij.lang.annotations.Language;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tech.tapsi.libs.hiss;
package io.github.tap30.hiss;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package tech.tapsi.libs.hiss;
package io.github.tap30.hiss;

import io.github.tap30.hiss.utils.EncryptionUtils;
import org.intellij.lang.annotations.Language;
import org.jetbrains.annotations.Nullable;
import tech.tapsi.libs.hiss.utils.EncryptionUtils;

import java.util.logging.Level;
import java.util.logging.Logger;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package tech.tapsi.libs.hiss;
package io.github.tap30.hiss;

import io.github.tap30.hiss.utils.EncryptionUtils;
import io.github.tap30.hiss.utils.HashingUtils;
import org.intellij.lang.annotations.Language;
import org.jetbrains.annotations.Nullable;
import tech.tapsi.libs.hiss.utils.EncryptionUtils;
import tech.tapsi.libs.hiss.utils.HashingUtils;

class HissEncryptor {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tech.tapsi.libs.hiss;
package io.github.tap30.hiss;

public class HissFactory {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package tech.tapsi.libs.hiss;
package io.github.tap30.hiss;

import lombok.Value;
import org.intellij.lang.annotations.Language;
import tech.tapsi.libs.hiss.utils.ReflectionUtils;
import tech.tapsi.libs.hiss.utils.StringUtils;
import io.github.tap30.hiss.utils.ReflectionUtils;
import io.github.tap30.hiss.utils.StringUtils;

import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package tech.tapsi.libs.hiss;
package io.github.tap30.hiss;

import io.github.tap30.hiss.utils.KeyUtils;
import io.github.tap30.hiss.utils.StringUtils;
import lombok.Value;
import tech.tapsi.libs.hiss.utils.KeyUtils;
import tech.tapsi.libs.hiss.utils.StringUtils;

import java.util.ArrayList;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tech.tapsi.libs.hiss;
package io.github.tap30.hiss;

import java.util.HashMap;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tech.tapsi.libs.hiss;
package io.github.tap30.hiss;

public interface HissPropertiesProvider {
HissProperties getProperties();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tech.tapsi.libs.hiss.utils;
package io.github.tap30.hiss.utils;

import lombok.Value;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tech.tapsi.libs.hiss.utils;
package io.github.tap30.hiss.utils;


import javax.crypto.BadPaddingException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tech.tapsi.libs.hiss.utils;
package io.github.tap30.hiss.utils;


import javax.crypto.Mac;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tech.tapsi.libs.hiss.utils;
package io.github.tap30.hiss.utils;

import java.util.Base64;
import java.util.Collections;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tech.tapsi.libs.hiss.utils;
package io.github.tap30.hiss.utils;

import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tech.tapsi.libs.hiss.utils;
package io.github.tap30.hiss.utils;

public class StringUtils {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tech.tapsi.libs.hiss;
package io.github.tap30.hiss;

import org.junit.jupiter.api.BeforeEach;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
package tech.tapsi.libs.hiss;
package io.github.tap30.hiss;

import lombok.Getter;
import lombok.Setter;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

import java.util.Map;

import static org.junit.jupiter.api.Assertions.*;

class HissTest extends BaseHissTest {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
package tech.tapsi.libs.hiss;
package io.github.tap30.hiss;

import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import tech.tapsi.libs.hiss.*;

import java.util.List;
import java.util.Map;
import java.util.Set;

import static org.junit.jupiter.api.Assertions.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
package tech.tapsi.libs.hiss;
package io.github.tap30.hiss;

import lombok.Getter;
import lombok.Setter;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

import java.util.Map;

import static org.junit.jupiter.api.Assertions.*;

public class HissTest_EncryptedInsideOnSimpleObject extends BaseHissTest {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tech.tapsi.libs.hiss.utils;
package io.github.tap30.hiss.utils;

import org.junit.jupiter.api.Test;

Expand Down

0 comments on commit 67ee5ae

Please sign in to comment.